package com.by.controller;

import com.by.bean.ResultBean;
import com.by.entity.ShopCart;
import com.by.service.CartService;
import com.by.service.impl.CartServiceImpl;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "购物车")
public class CartController extends BaseController{


    @Autowired
    CartService cartService;

    /**
     * 加入购入车
     * @return
     */
    @PostMapping("/cart")
    public ResultBean saveCart(ShopCart shopCart){

        return success("成功");
    }

}
